package com.example.vue.dashboard.action;

import com.example.vue.dashboard.service.DashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author zhouxl
 * @DATE 2020/12/21
 * @descriptoin
 */
@RestController
@RequestMapping("/api/dashboard")
public class DashboardAction {

    @Autowired
    private DashboardService dashboardService;

    @RequestMapping(value = "/queryDashboardInfo", method = RequestMethod.POST)
    public Object queryDashboardInfo(@RequestParam Map<String, Object> params) {
        return dashboardService.queryDashboardInfo(params);
    }

}
